package keyboard.exception;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 2B键盘
 * @create 2018-05-08 16:34
 * @desc 客户端异常
 **/
public class ClientException extends Exception {
    String info;
    public ClientException(String info){
        this.info = info;
    }

    public Map getExceptionInfo(){
        Map map = new HashMap();
        map.put("msg",info);
        return map;
    }

    public String toString(){
        return getExceptionInfo().toString();
    }

}
